package require Tk
package require msgcat

set currentPath [file dirname [info script]]
::msgcat::mcload [file join $currentPath msgs]
lappend ::auto_path [file join $currentPath lib]

source [file join [file dirname [info script]] hook.tcl]
source [file join [file dirname [info script]] init.tcl]
source [file join [file dirname [info script]] config.tcl]

::config::default
::config::change_user_config [file join $currentPath "NFT.ini"]
::config::load

source [file join [file dirname [info script]] ui.tcl]
source [file join [file dirname [info script]] planet.tcl]
source [file join [file dirname [info script]] chat.tcl]

::hook::run preload 

::ui::create

::hook::run finload 

::planet::getJson

vwait forever